<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>

<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":"
            + request.getServerPort() + path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:c="http://java.sun.com/jsp/jstl/core">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

		<link type="text/css" rel="stylesheet" href="<%=path%>/css/reset.css" />
		<link type="text/css" rel="stylesheet" href="<%=path%>/css/sideR.css" />

		<script type="text/javascript">         
	         var sysPath = "<%=path%>";
	    </script>
		<script language="JavaScript" src="<%=path%>/js/jquery-1.3.1.min.js"
			type="text/JavaScript" charset="utf-8"></script>

		<script language="JavaScript" src="jfunction.js" type="text/JavaScript" charset="utf-8"></script>
		<title>添加页面</title>
	</head>

<body>

   <f:view>
       <h:form id="functionForm" onsubmit="return verifySumbit();">
	       <div class="sideR">
					<h2 class="tit2 mar_2">
						添加机构
					</h2>
					<table width="796" border="0" cellpadding="0" cellspacing="0"
						class="table2"
						style="border: 1px solid #ddd; border-collapse: collapse;">
						<tr>
							<td valign="middle">
								<div
									style="height: 464px; overflow-x: hidden; overflow-y: scroll; background-color: #f3f7f8">
									<table width="758" border="0" cellspacing="0" cellpadding="0"
										class="table5">
                                           <tr> 
        <td width="140" class="td_1">
            <span class="zi_1">
            表ID：&nbsp;
            </span>
        </td> 
        <td class="td_2"> &nbsp; 
             <h:inputText id="functionID" size="35" value="#{functionBean.functionID}" validator="#{functionBean.validateFunctionID}" required="false"> 
             </h:inputText> 
             <span class="red">                 <h:message for="functionID"></h:message> 
            * </span>&nbsp; 
        </td>  
    </tr> 
    <tr>
        <td width="140" class="td_1">
            <span class="zi_1">
            功能编号：&nbsp;
            </span>
        </td> 
        <td class="td_2"> &nbsp; 
             <h:inputText id="funcCode" size="35" value="#{functionBean.funcCode}" required="false"> 
             </h:inputText> 
             <span class="red">            * </span>&nbsp; 
        </td>  
    </tr> 
    <tr>
        <td width="140" class="td_1">
            <span class="zi_1">
            功能名称：&nbsp;
            </span>
        </td> 
        <td class="td_2"> &nbsp; 
             <h:inputText id="name" size="35" value="#{functionBean.name}" required="false"> 
             </h:inputText> 
             <span class="red">            * </span>&nbsp; 
        </td>  
    </tr> 
    <tr>
        <td width="140" class="td_1">
            <span class="zi_1">
            功能描述：&nbsp;
            </span>
        </td> 
        <td class="td_2"> &nbsp; 
             <h:inputText id="describe" size="35" value="#{functionBean.describe}" required="false"> 
             </h:inputText> 
             <span class="red">            * </span>&nbsp; 
        </td>  
    </tr> 
    <tr>
        <td width="140" class="td_1">
            <span class="zi_1">
            功能页面：&nbsp;
            </span>
        </td> 
        <td class="td_2"> &nbsp; 
             <h:inputText id="pageUrl" size="35" value="#{functionBean.pageUrl}" required="false"> 
             </h:inputText> 
             <span class="red">            * </span>&nbsp; 
        </td>  
    </tr> 
    <tr>
        <td width="140" class="td_1">
            <span class="zi_1">
            功能层级：&nbsp;
            </span>
        </td> 
        <td class="td_2"> &nbsp; 
             <h:inputText id="funcLevel" size="35" value="#{functionBean.funcLevel}" required="false"> 
             </h:inputText> 
             <span class="red">            * </span>&nbsp; 
        </td>  
    </tr> 
    <tr>
        <td width="140" class="td_1">
            <span class="zi_1">
            功能状态：&nbsp;
            </span>
        </td> 
        <td class="td_2"> &nbsp; 
             <h:inputText id="funStatus" size="35" value="#{functionBean.funStatus}" required="false"> 
             </h:inputText> 
             <span class="red">            * </span>&nbsp; 
        </td>  
    </tr> 
    <tr>
        <td width="140" class="td_1">
            <span class="zi_1">
            父功能菜单 ：&nbsp;
            </span>
        </td> 
        <td class="td_2"> &nbsp; 
             <h:inputText id="fatherFunCode" size="35" value="#{functionBean.fatherFunCode}" required="false"> 
             </h:inputText> 
             <span class="red">            * </span>&nbsp; 
        </td>  
    </tr> 
    <tr>
        <td width="140" class="td_1">
            <span class="zi_1">
            对于父级的排序：&nbsp;
            </span>
        </td> 
        <td class="td_2"> &nbsp; 
             <h:inputText id="funOrder" size="35" value="#{functionBean.funOrder}" required="false"> 
             </h:inputText> 
             <span class="red">            * </span>&nbsp; 
        </td>  
    </tr> 
    <tr>
        <td width="140" class="td_1">
            <span class="zi_1">
            是否有子菜单：&nbsp;
            </span>
        </td> 
        <td class="td_2"> &nbsp; 
             <h:inputText id="haschild" size="35" value="#{functionBean.haschild}" required="false"> 
             </h:inputText> 
             <span class="red">            * </span>&nbsp; 
        </td>  
    </tr> 

                                	</table>
								</div>
							</td>
						</tr>
						<tr>
							<td>
								<p class="Gbg">
									<input type="button" name="thb"  class="but1" value="返回" onclick="window.history.back(-1)">
								</p>
							</td>
						</tr>
					</table>
				</div>
			</h:form>
		</f:view>
	</body>
</html>
